package com.starblink.brand.adapter

import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.starblink.android.basic.adapter.BaseBindingVH
import com.starblink.basic.util.ActivityStackManage
import com.starblink.brand.bean.BrandMoreTitleBean
import com.starblink.brand.databinding.ItemBrandMoreTitleBinding

class BrandMoreTitleHolder (
    binding: ItemBrandMoreTitleBinding,
): BaseBindingVH<BrandMoreTitleBean, ItemBrandMoreTitleBinding>(binding)  {
    init {
        val layoutParams = StaggeredGridLayoutManager.LayoutParams(
            StaggeredGridLayoutManager.LayoutParams.MATCH_PARENT,
            StaggeredGridLayoutManager.LayoutParams.WRAP_CONTENT
        ).apply {
            isFullSpan = true
        }
        layoutParams.setMargins(0,ActivityStackManage.currentActivity().resources.getDimensionPixelSize(
            com.starblink.basic.style.R.dimen.d_36dp),0, 0)
        itemView.layoutParams = layoutParams
    }
    override fun onBind(model: BrandMoreTitleBean, position: Int) {

    }
}